clear
set more off
cd "/Users/michaelflynn/Dropbox/Projects/Aid and NGOs/Data"
use "ngoaiddata.dta", clear

drop if dyad == .
replace dyad = (ccode1*1000)+ccode2
xtset dyad year
set matsize 2000

* Variable Labels
	label var logexport "ln(Exports)"
	label var growth "Donor Growth"
	label var percright "Percentage of Right Parties"
	label var exports_percent "Exports %"
	label var post08 "Post-Financial Crisis"
	label var growth "Donor Growth"
	label var polity2 "Polity"
	label var physint "Rights"
	label var logtrade "ln(Trade)"
	label var lndisasternum2l "Natural Disasters"
	label var defense "Alliance"
	label var s3un "Affinity"
	label var lnall "ln(All Channels)"
	label var govtrile "Ideology"
	label var govtecon "Ideology"
	label var lnratio "Lagged ln(Aid Ratio)"
	label var prio2 "Civil Conflict"
	label var lnngo "ln(NGO Aid)"
	label var lnpublic "ln(Public Aid)"
	label var loggdppc "GDPPC"
	label var governance_all_mean "Governance"

/// Model 2 - Full Model
eststo: reg F.lnratio govtrile socgdp1Ml  growth s3un defense physint polity2 prio2 lnall exports_percent loggdppc governance_all_mean colony lnratio, robust

corrtex govtrile socgdp1Ml  growth s3un defense physint polity2 prio2 lnall exports_percent loggdppc governance_all_mean colony lnratio if e(sample), file(correlation_matrix.tex) replace digits(3)  title(Correlation Matrix of Primary Independent Variables)

